package com.zhl.inner_class1;

public class Outer {
        private int age = 99;
    class Ineer{
        private int age = 88;
        private String name;
        //public static int age = 18;  JDK16才开始支持static变量

        public void test(){
            int age = 77;
            System.out.println(age);//77
            System.out.println(this.age);//88
            System.out.println(Outer.this.age);//99
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }

}
